﻿<%@page import="com.mmy.domain.hotel.THotelBase"%>
<%@page import="com.mmy.domain.constzone.TConstZone"%>
<%@ page language="java" contentType="text/html; charset=UTF-8" pageEncoding="UTF-8"%>
 <%@ taglib uri="http://java.sun.com/jsp/jstl/core" prefix="c"%> 
 <%@ taglib prefix="fmt" uri="http://java.sun.com/jsp/jstl/fmt" %>  

<!DOCTYPE html PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN" "http://www.w3.org/TR/html4/loose.dtd">
<html>
<head>
<meta http-equiv="Content-Type" content="text/html; charset=UTF-8">
<jsp:include page="/WEB-INF/jsp/includeb.jsp"></jsp:include>
	</head>
	<body>
		<div id="off-canvas-container" class="off-canvas-container">
		<jsp:include page="/WEB-INF/jsp/BackHeader.jsp"></jsp:include>
		<!-- ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ -->
		<!-- Main Start -->
		<!-- ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ -->
		<main class="at-padding-large-bottom">
			<article>
				<header class="bg-light at-padding-large-top at-padding-large-bottom at-margin-large-bottom">
					<div class="page-header container">
						<div class="row">
							<div class="span-5 col">
								<h1>酒店管理</h1>
							</div>	
							
						 </div >
					</div>
				</header>
				<section class="container">
					
					
					<!-- 修改酒店基本信息 -->
					<div class="information" >
					<form action="saveupdatehotelbase" class="info-form" >
						<h4 class="info-h4">
							<i class="fa fa-caret-right" aria-hidden="true" ></i>修改酒店基本信息
						</h4>
					<div class="input-container">
					<table class="info-table">
					<tr>
							
								<th><label for="HotelName">酒店名称</label></th>
							<td colspan="2">
								<input type="hidden" name="HotelID" value="${newTHotelBase.getHotelID()}" readonly="readonly"/>
<input type="text" id="HotelName" name="HotelName" value="${newTHotelBase.getHotelName()}" required="required"/><span class="mustWrite">*</span>
							</td>
							<th><label for="HotelCode">酒店代号</label></th>
							<td colspan="2">
								<input type="text" id="HotelCode" name="HotelCode" value="${newTHotelBase.getHotelCode()}" required="required"/><span class="mustWrite">*</span>
							</td>
							</tr>
							<tr>
							
							
					<th><label for="HotelZoneID">所属区域</label></th>
					<td colspan="2">
					<select class="select-height" id="HotelZoneID" name="ZoneProvinceID" required="required">
					<c:forEach var="tConstZoneProvince" items="${newTConstZoneProvince}">
						<option value="${tConstZoneProvince.getZoneID()}">${tConstZoneProvince.getZoneName()}</option>
						</c:forEach>
						</select>
					<select class="select-height"  name="ZoneCityID" required="required">
					<c:forEach var="tConstZone" items="${newTConstZone}">
						<option value="${tConstZone.getZoneID()}">${tConstZone.getZoneName()}</option>
						</c:forEach>
						</select> 
						<select class="select-height" id="ZoneID" name="ZoneID" required="required">
					<c:forEach var="tConstZoneDistrict" items="${newTConstZoneDistrict}">
						<option value="${tConstZoneDistrict.getZoneID()}">${tConstZoneDistrict.getZoneName()}</option>
						</c:forEach>
						</select><span class="mustWrite">*</span>
							</td>
							<th><label for="HotelAddress">地址</label></th>
							<td colspan="2">
								<input type="text" id="HotelAddress" name="Address" value="${newTHotelBase.getAddress()}" required="required"/><span class="mustWrite">*</span>
							</td>
						</tr>
						<tr >
							<th><label for="HotelContact">联系人</label></th>
							<td colspan="2">
								<input type="text" id="HotelContact"  name="Contact" value="${newTHotelBase.getContact()}" required="required"/><span class="mustWrite">*</span>
							</td>
							
							<th><label for="HotelTel">联系电话</label></th>
							<td colspan="2">
								<input type="text" id="HotelTel" name="Tel" value="${newTHotelBase.getTel()}" required="required"/><span class="mustWrite">*</span>  
							</td>
							
						</tr>
						<tr>
						<th><label for="HotelRate">酒店星级</label></th>
							<td colspan="2">
							<input type="text" id="HotelRate" name="Rate" value="${newTHotelBase.getRate()}"required="required"/><span class="mustWrite">*</span>  				 
							</td>
							<th><label for="HotelType">酒店类型</label></th>
							<td colspan="2">
							<select class="select-height" id="HotelType" name="Type" required="required">
								<option value="0">星级酒店</option>
								<option value="1">快捷酒店</option>
<option value="2">民宿 </option>
								<option value="3">别墅</option>
							</select>
								<span class="mustWrite">*</span>  
							</td>
							
						</tr>
						<tr >
							<th><label for="HotelYear">建筑年份</label></th>
							<td colspan="2">
								<input type="text" id="HotelYear" name="Year" value="${newTHotelBase.getYear()}" required="required"/><label>年建<span class="mustWrite">*</span></label>
							</td>
							
							<th><label for="HotelHeight">楼层高度及房间总数量</label></th>
							<td colspan="2">
								<input type="text"  id="HotelHeight" name="Height" value="${newTHotelBase.getHeight()}" required="required"/><label>米<span class="mustWrite">*</span></label>
								<input type="text" name="Room" value="${newTHotelBase.getRoom()}" required="required"/><label>间<span class="mustWrite">*</span></label>
							</td>
							
						</tr>
						<tr>
							<th><label  for="HotelIntro">酒店介绍</label></th>
							<td colspan="5">
								
								<textarea id="HotelNotice" name="Intro"  required="required">${newTHotelBase.getIntro()}</textarea><span class="mustWrite">*</span>
							</td>
							
							</tr>
							<tr>
							<th><label for="HotelNotice">订房须知</label></th>
							<td colspan="5">
								<textarea id="HotelNotice" name="Notice" required="required">${newTHotelBase.getNotice()} </textarea><span class="mustWrite">*</span>
							</td>
							
							</tr>
							<tr>
							<th><label for="HotelFacilities">酒店设施</label></th>
							<td colspan="5">
								<textarea id="HotelFacilities" name="Facilities"   required="required">${newTHotelBase.getFacilities()}</textarea><span class="mustWrite">*</span>
							</td>
							
							</tr>
								<tr>
							<th><label  for="HotelImg">酒店图片</label></th>
							<td colspan="5">
								<input type="file" id="HotelImg" name="ImgPath" value="${newTHotelBase.getImgPath()}" /><span class="mustWrite">*</span>
							</td>
							
							</tr>
								<tr>
							<th><label for="HotelEvaluation">酒店评价</label></th>
							<td colspan="5">
								<textarea name="Evaluation" id="HotelEvaluation"required="required">${newTHotelBase.getEvaluation()}</textarea><span class="mustWrite">*</span>
							</td>
							
							</tr>
							
					
						<tr>
							<th><label for="HotelMemo">备注</label></th>
					<td colspan="5">
						<textarea id="HotelMemo" name="Memo" required="required">${newTHotelBase.getMemo()}</textarea>
					</td>
							
						</tr>
						</table>
			<center>
				<input type="submit" class="btn" value="保存" />
				<input type="button" class="btn" value="返回" onclick="rehidder()"/>
			</center> 
			</div>
			</form>
			</div>
			</section>
			</article>
			</main>
			<!-- ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ -->
		<!-- Main End -->
		<!-- ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ -->

		<jsp:include page="/WEB-INF/jsp/Footer.jsp"></jsp:include>
	</div>
	<jsp:include page="/WEB-INF/jsp/include2.jsp"></jsp:include>
</body>

</html>